<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <div class="top">
    
        <h1>全国城市三级联动</h1>
    
    </div>
    
    <div class="info">
    
        <div>
    
        <select id="s_province" name="s_province"></select>  
    
        <select id="s_city" name="s_city" ></select>  
    
        <select id="s_county" name="s_county"></select>
    
        <script class="resources library" src="../js/area.js" type="text/javascript"></script>
    
        
    
        <script type="text/javascript">_init_area();</script>
    
        </div>
    
        <div id="show"></div>
    
    </div>
    
    <script type="text/javascript">
    
    var Gid  = document.getElementById ;
    
    var showArea = function(){
    
        Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" + 	
    
        Gid('s_city').value + " - 县/区" + 
    
        Gid('s_county').value + "</h3>"
    
                                }
    
    Gid('s_county').setAttribute('onchange','showArea()');
    
    </script>
    
    </body>
</html>